import request from './request'

// 获取客户列表
export const getGuests = (params) => {
  return request.get('/guests', { params })
}

// 获取客户详情
export const getGuest = (id) => {
  return request.get(`/guests/${id}`)
}

// 创建客户
export const createGuest = (data) => {
  return request.post('/guests', data)
}

// 更新客户
export const updateGuest = (id, data) => {
  return request.put(`/guests/${id}`, data)
}

// 删除客户
export const deleteGuest = (id) => {
  return request.delete(`/guests/${id}`)
}
